<fieldset id="{{$id}}" class="d-none">
    @if($goods_types)
        @component('backend::component.form.form-group')
            @slot('title') 类型 @endslot
            @component('backend::component.form.select',['options'=>$goods_types])
                @slot('name') goods_type @endslot
                @slot('value') {{$goods->type_id}} @endslot
                    @slot('attr') id=goods_type @endslot
                    @slot('params') {"attrUrl":"{{route('b_GoodsAttribute_getAttributeByTypeId')}}","specUrl":"{{route('b_ShopSpec_getSpecByTypeId')}}"} @endslot
            @endcomponent
        @endcomponent
{{--        <table class="table table-bordered info-card " id="shop-attr">--}}
{{--            <thead>--}}
{{--            <tr class="table-secondary"><td style="width: 200px;">属性名称</td>--}}
{{--                <td>属性值--}}
{{--                    <a onclick="addAttribute();" href="javascript:;" class="add-attr float-right text-primary">添加属性</a>--}}
{{--                </td>--}}
{{--            </tr></thead>--}}
{{--            <tbody>--}}
{{--            @if($goods->attributes)--}}
{{--                @foreach($goods->attributes as $item)--}}
{{--                <tr>--}}
{{--                    <td><input class="form-control" name="attr_title[]" value="{{$item->attr_title}}">--}}
{{--                        <input type="hidden" name="attr_id[]" value="{{$item->attr_id}}">--}}
{{--                    </td>--}}
{{--                    <td>--}}
{{--                        <div class="d-inline-flex flex-row col-sm-10 col-md-8 col-lg-6">--}}
{{--                            <input class="form-control mr-2 flex-grow-1" name="attr_value[]" value="{{$item->value}}">--}}
{{--                            <span class="hcl hcl-circle-jian text-danger align-self-center attr-delete" style="font-size: 25px;cursor: pointer;"></span>--}}
{{--                        </div>--}}
{{--                    </td>--}}
{{--                </tr>--}}
{{--                @endforeach--}}
{{--            @endif--}}
{{--            </tbody>--}}
{{--        </table>--}}

            <div class="card mb-3" >
                <div class="card-header">商品规格<a onclick="addSpec();" href="javascript:;" class="add-attr float-right text-primary">添加规格</a></div>
                <div class="card-body  bg-secondary" id="shop-spec" data-default="{{$specs}}" data-sku="{{$sku}}">
                </div>
            </div>
            <div id="shop-spec-body"></div>

    @endif

        @component('backend::component.form.form-group')
            @slot('title') 库存 @endslot
            @component('backend::component.form.input')
                @slot('name') stock @endslot
                @slot('value') {{$goods->stock}} @endslot
            @endcomponent
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 库存预警值 @endslot
            @component('backend::component.form.input')
                @slot('name') stock_warning @endslot
                    @slot('value') {{$goods->stock_warning}} @endslot
            @endcomponent
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 邮寄方式 @endslot
            @component('backend::component.form.select',['options'=>config('shop.post_type')])
                @slot('name') post_type @endslot
                @slot('value') {{$goods->post_type}} @endslot
            @endcomponent
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 邮费 @endslot
            @component('backend::component.form.input')
                @slot('name') postage @endslot
                @slot('value') {{$goods->postage}} @endslot
            @endcomponent
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 显示销售量 @endslot
            @component('backend::component.form.input')
                @slot('name') show_sales_volume @endslot
                @slot('value') {{$goods->show_sales_volume}} @endslot
            @endcomponent
            @slot('remark') 实际销售量为{{$goods->fact_sales_volume}} @endslot
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 排序 @endslot
            @component('backend::component.form.input')
                @slot('name') sort @endslot
                @slot('value') {{$goods->sort}} @endslot
            @endcomponent
        @endcomponent

</fieldset>